/**
 * 加班套件
 */
export const overtimeChildren = [
    {
        label: '加班类型',
        formId: 'overTimeType',
        tag: 'Select',
        isSummary: true,
        rules: [
            {
                required: true,
                message: '请选择加班类型'
            }
        ],
        options: {
            disabled: true,
            placeholder: '加班'
        }
    },
    {
        label: '开始时间',
        formId: 'startTime',
        tag: 'LeaveDatePicker',
        isSummary: true,
        rules: [
            {
                required: true,
                message: '请选择开始时间'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请选择开始时间'
        }
    },
    {
        label: '结束时间',
        formId: 'endTime',
        tag: 'LeaveDatePicker',
        isSummary: true,
        rules: [
            {
                required: true,
                message: '请选择结束时间'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请选择结束时间'
        }
    },
    {
        label: '时长',
        formId: 'duration',
        tag: 'Duration',
        autofill: true,
        extra: '加班时长将自动计入考勤统计',
        rules: [
            {
                required: true,
                message: '时长不能为空'
            }
        ],
        options: {
            disabled: true,
            placeholder: '时长'
        }
    },
    {
        label: '加班事由',
        formId: 'reason',
        tag: 'TextArea',
        rules: [
            {
                required: true,
                message: '请输入加班事由'
            }
        ],
        options: {
            disabled: true,
            placeholder: '请输入加班事由'
        }
    }
];

export const overtimeControl = {
    label: '加班申请',
    cmpType: 'custom',
    formId: '',
    key: 'Overtime',
    tag: 'Overtime',
    tagIcon: 'iconprocess_common_overtimeapply_icon',
    children: overtimeChildren
};
